<include file="Public/header"/>
<body>
<header>
<div class="tab_nav">
  <div class="header">
    <div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"></a></div>
    <div class="h-mid"><img src="__STATIC__/images/toplogo.png">推荐会员列表</div>
    <div class="h-right">
      <aside class="top_bar">
        <div onClick="show_menu();$('#close_btn').addClass('hid');" id="show_more"><a href="javascript:;"></a> </div>
      </aside>
    </div>
  </div>
</div>
</header>
<include file="Public/menu"/>
<div id="tbh5v0">           
<div style="background:#fff;">

<empty name="tjr_list">
<p class="font12">您没有任何推荐会员哦！</p>
<else/>
<div class="Funds">
  <ul>
  <foreach name="tjr_list" item="item" key="k">
    <li class="Funds_li" <if condition="$k eq count($tjr_list)"> style="border:0"</if>>
        <span class="icon <if condition='$k eq 0'>on</if>"></span>
        <span>姓名:<em>{$item.bank_name}</em>,账号:<em>{$item.account}</em>,手机:<em>{$item.mobile}</em>,会员级别:<em>{$item.level_name}</em></span>
        <span>注册时间：{$item.reg_time|date='Y-m-d H:i:s',###}</span>
        <span>
            <if condition='$item.is_activate eq 0'> 
                                 <if condition="$tpshop_config['reg_is_jh2_statu'] eq 1"><a href="{:U('Zmd/tjr_kthuiyuan',array('user_id'=>$item['user_id']))}" onClick="return confirm('本次操作将扣除您相应的库存积分，确认激活VIP？');" ><b style='color:red;'>VIP未激活</b></a> 
                                      | <a href="{:U('User/user_delete',array('user_id'=>$item['user_id']))}" onClick="return confirm('确认删除？');" ><b style='color:red;'>删除</b></a><else /><b style='color:red;'>未激活</b>  | <a href="{:U('User/user_delete',array('user_id'=>$item['user_id']))}" onClick="return confirm('确认删除？');" ><b style='color:red;'>删除</b></a></if>
                                 <else />己激活 {$item.jh_time|date='Y-m-d H:i:s',###}</if>
        </span>
    </li>
  </foreach>
  </ul>
</div>
<notempty name="tjr_list">
   <div id="getmore" style="font-size:.24rem;text-align: center;color:#888;padding:.25rem .24rem .4rem; clear:both">
        <a href="javascript:void(0)" onClick="ajax_sourch_submit()">点击加载更多</a>
  </div>
</notempty>
</empty>
</div>
<a href="javascript:goTop();" class="gotop"><img src="__STATIC__/images/topup.png"></a> 
</div>
<script>
var  page = 1;
 /*** ajax 提交表单 查询订单列表结果*/  
 function ajax_sourch_submit()
 {           
        page += 1;
        $.ajax({
            type : "GET",
            url:"/index.php?m=Mobile&c=Zmd&a=tjr_list&is_ajax=1&p="+page,//+tab,
//          url:"{:U('Mobile/User/account',null,'')}/is_ajax/1/p/"+page,//+tab,
//          data : $('#filter_form').serialize(),// 你的formid 搜索表单 序列化提交
            success: function(data)
            {
                if($.trim(data) == '')
                    $('#getmore').hide();
                else
                    $(".Funds > ul").append(data);
            }
        }); 
 } 
</script>

<script type="text/javascript">
function goTop(){
    $('html,body').animate({'scrollTop':0},600);
}
</script>
</body>
</html>